﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkLogGrid.aspx.cs" Inherits="FantastPlatform.Community.UI.WorkLogGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        var type = "<%=Type %>";
        var wlg = new FantastPlatform.UI.WorkLogGrid({
            renderTo: 'wlg_div',
            url: '../Service/WorkLog.aspx?Action=Search',
            border: false,
            width: tabs.getInnerWidth() - 2,
            height: tabs.getInnerHeight() - 2,
            type: type,
            tbar: [{
                text: '发表新日志',
                iconCls: 'add',
                tooltip: {
                    text: '发表新日志',
                    title: '发表日志',
                    autoHide: true
                },
                handler: function () { wlg.onAddWorkLogGridClick(); }
            }, '-', {
                text: '编辑',
                iconCls: 'edit',
                tooltip: {
                    text: '选择要编辑的日志',
                    title: '编辑日志',
                    autoHide: true
                },
                handler: function () { wlg.onEditWorkLogGridClick(); }
            }, '-', {
                text: '删除',
                iconCls: 'delete',
                tooltip: {
                    text: '删除选中的日志',
                    title: '删除日志',
                    autoHide: true
                },
                handler: function () { wlg.onDeleteWorkLogGridClick(); }
            }, '-', {
                text: '查看回复',
                iconCls: 'Details',
                tooltip: {
                    text: '选择要查看的日志',
                    title: '查看日志',
                    autoHide: true
                },
                handler: function () { wlg.onDetailsWorkLogGridClick(); }
            }, '-', {
                text: '查询',
                iconCls: 'search',
                tooltip: {
                    text: '按照条件查询日志',
                    title: '查询日志',
                    autoHide: true
                },
                handler: function () { wlg.onSearchClick(); }
            }, '-', {
                text: '刷新',
                iconCls: 'updata',
                tooltip: {
                    text: '重新更新列表内容',
                    title: '列表刷新',
                    autoHide: true
                },
                handler: function () { wlg.onUpdataWorkLogGridClick(); }
            }]
        });
        wlg.addListener('rowdblclick', function () { wlg.onEditWorkLogGridClick(); });
        wlg.onUpdataWorkLogGridClick();
    </script>
</head>
<body>
    <div id="wlg_div">
    </div>
</body>
</html>
